package com.zql;import com.zql.com.zql.service.ProviderService;import org.springframework.context.support.ClassPathXmlApplicationContext;import java.io.IOException;/** * @Author: Beating Pupils * @Date: 2020/8/9 17:34 * @Description: */public class ConsumerApp {    public static void main(String[] args) throws IOException {        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("consumer.xml");        context.start();        ProviderService providerService = (ProviderService) context.getBean("providerService");        String str = providerService.sayHello("大哥个");        System.out.println(str);        System.in.read();    }}